package com.itheima.controller;

import com.itheima.pojo.Result;
import com.itheima.pojo.User;
import com.itheima.service.UserServiceA;
import com.itheima.util.XmlParserUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController()
public class UserController {
    @RequestMapping("/user666")
    public Result user() {
        UserServiceA service = new UserServiceA();
        List<User> users = service.operator();
        return Result.success(users);
    }
}
